package com.starblink.search.search.ui.cell

import com.starblink.android.basic.adapter.BaseVH
import com.starblink.android.basic.adapter.MutableAdapter
import com.starblink.rocketreserver.FetchSugWordQuery

class SearchSugAdapter(list: List<FetchSugWordQuery.FetchSugWord>): MutableAdapter(list) {

    var curKeyword: String? = null

    override fun onBindViewHolder(holder: BaseVH<*>, position: Int) {
        (holder as SearchSugCell?)?.let {
            it.curKeyword = curKeyword
        }
        super.onBindViewHolder(holder, position)
    }

}